package com.itheima.service.db;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.domain.db.SoulQuestion;
import com.itheima.domain.vo.PageBeanVo;

import java.util.List;

public interface SoulQuestionService {
    //根据问卷id查找所有问题
    List<SoulQuestion> findByQuestionnaireId(Long id);
   //根据问题id查找
    SoulQuestion findByQuestionId(Long questionId);
    //显示所有问题
    List<SoulQuestion> findQuestionList();

    //分页查询所有问题
    PageBeanVo SoulQuestionByPage(Integer pageNum, Integer pageSize);

    //问题添加
    Integer saveQuestions(SoulQuestion soulQuestion);

    //问题修改
    Integer updateSoulQuestions(SoulQuestion soulQuestion);

    //问题删除
    Integer deleteQuestions(SoulQuestion soulQuestion);
}
